package com.scaffold.commons.date;

import java.util.Date;

/**
 * 
 * @author wangjg
 *
 */
public class TimestampEditor extends MyDateEditor {

	public TimestampEditor() {
		super();
	}

	public TimestampEditor(String dateFormat) {
		super(dateFormat);
	}

	public void setValue(Object value) {
		Date date = (Date)value;
		java.sql.Timestamp t = new java.sql.Timestamp(date.getTime());
		super.setValue(t);
	}
}
